﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using DataInfo;

public partial class Org_frmO_ContractSignOutput : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        ((Org_MasterPage)this.Master).changeTitle("雇用条件書作成（一括出力）");
        ((Org_MasterPage)this.Master).HideLiArea("input");
        AppCode_Common.Show10Row(grv,"氏名,性別,生年月日,国籍,入国年月日,実習実施機関,実習実施場所","Nguyen Van A,男,1989/04/02,ベトナム,2009/03/02");
      //  grv.DataSource = myTable();
       // grv.DataBind();
    }
    public DataTable myTable()
    {
        DataTable dt = new DataTable();
        DataColumn col;
        DataRow row;

        col = new DataColumn();
        col.DataType = System.Type.GetType("System.String");
        col.ColumnName = "氏名";
        dt.Columns.Add(col);

        col = new DataColumn();
        col.DataType = System.Type.GetType("System.String");
        col.ColumnName = "性別";
        dt.Columns.Add(col);

        col = new DataColumn();
        col.DataType = System.Type.GetType("System.String");
        col.ColumnName = "生年月日";
        dt.Columns.Add(col);

        col = new DataColumn();
        col.DataType = System.Type.GetType("System.String");
        col.ColumnName = "国籍";
        dt.Columns.Add(col);

        col = new DataColumn();
        col.DataType = System.Type.GetType("System.String");
        col.ColumnName = "入国年月日";
        dt.Columns.Add(col);

        col = new DataColumn();
        col.DataType = System.Type.GetType("System.String");
        col.ColumnName = "実習実施機関";
        dt.Columns.Add(col);

        col = new DataColumn();
        col.DataType = System.Type.GetType("System.String");
        col.ColumnName = "実習実施場所";
        dt.Columns.Add(col);


        row = dt.NewRow();
        row["氏名"] = "Nguyen Van A";
        row["性別"] = "男";
        row["生年月日"] = "1989年4月2日";
        row["国籍"] = "ベトナム";
        row["入国年月日"] = "2009年3月2日";
        row["実習実施機関"] = "2010年3月2日";
        row["実習実施場所"] = "CICS";
        dt.Rows.Add(row);

       

        return dt;
    }
    
}
